.class public Lcom/TwinBlade/PicturePassword/Tasker;
.super Landroid/app/Activity;
.source "SourceFile"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Z

.field private b:Z

.field private c:Landroid/widget/Button;

.field private d:Landroid/widget/Button;

.field private e:Landroid/widget/RadioButton;

.field private f:Landroid/widget/RadioButton;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 16
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 18
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->a:Z

    .line 16
    return-void
.end method


# virtual methods
.method public finish()V
    .locals 4

    .prologue
    .line 55
    iget-boolean v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->a:Z

    if-nez v0, :cond_0

    .line 56
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Tasker;->setResult(I)V

    .line 74
    :goto_0
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    .line 75
    return-void

    .line 59
    :cond_0
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 60
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 61
    const-string v2, "com.TwinBlade.PicturePassword.Tasker.START_SERVICE"

    iget-boolean v3, p0, Lcom/TwinBlade/PicturePassword/Tasker;->b:Z

    invoke-virtual {v0, v2, v3}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 62
    const-string v2, "com.twofortyfouram.locale.intent.extra.BUNDLE"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;

    .line 65
    iget-boolean v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->b:Z

    if-eqz v0, :cond_1

    .line 66
    const-string v0, "Start Service"

    .line 70
    :goto_1
    const-string v2, "com.twofortyfouram.locale.intent.extra.BLURB"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 72
    const/4 v0, -0x1

    invoke-virtual {p0, v0, v1}, Lcom/TwinBlade/PicturePassword/Tasker;->setResult(ILandroid/content/Intent;)V

    goto :goto_0

    .line 68
    :cond_1
    const-string v0, "Stop Service"

    goto :goto_1
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 79
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    .line 104
    :goto_0
    return-void

    .line 82
    :sswitch_0
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/Tasker;->finish()V

    goto :goto_0

    .line 86
    :sswitch_1
    iput-boolean v1, p0, Lcom/TwinBlade/PicturePassword/Tasker;->a:Z

    .line 87
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/Tasker;->finish()V

    goto :goto_0

    .line 91
    :sswitch_2
    iput-boolean v2, p0, Lcom/TwinBlade/PicturePassword/Tasker;->a:Z

    .line 92
    iput-boolean v2, p0, Lcom/TwinBlade/PicturePassword/Tasker;->b:Z

    .line 94
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->f:Landroid/widget/RadioButton;

    invoke-virtual {v0, v1}, Landroid/widget/RadioButton;->setChecked(Z)V

    goto :goto_0

    .line 98
    :sswitch_3
    iput-boolean v2, p0, Lcom/TwinBlade/PicturePassword/Tasker;->a:Z

    .line 99
    iput-boolean v1, p0, Lcom/TwinBlade/PicturePassword/Tasker;->b:Z

    .line 101
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->e:Landroid/widget/RadioButton;

    invoke-virtual {v0, v1}, Landroid/widget/RadioButton;->setChecked(Z)V

    goto :goto_0

    .line 79
    :sswitch_data_0
    .sparse-switch
        0x7f080004 -> :sswitch_0
        0x7f080005 -> :sswitch_1
        0x7f08003c -> :sswitch_2
        0x7f08003d -> :sswitch_3
    .end sparse-switch
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 3
    .parameter

    .prologue
    .line 26
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 28
    invoke-static {p0}, Lcom/TwinBlade/PicturePassword/bd;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 29
    const v0, 0x7f03000b

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Tasker;->setContentView(I)V

    .line 31
    const v0, 0x7f080004

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Tasker;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->c:Landroid/widget/Button;

    .line 32
    const v0, 0x7f080005

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Tasker;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->d:Landroid/widget/Button;

    .line 33
    const v0, 0x7f08003c

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Tasker;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioButton;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->e:Landroid/widget/RadioButton;

    .line 34
    const v0, 0x7f08003d

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Tasker;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioButton;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->f:Landroid/widget/RadioButton;

    .line 36
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->c:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 37
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->d:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 38
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->e:Landroid/widget/RadioButton;

    invoke-virtual {v0, p0}, Landroid/widget/RadioButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 39
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Tasker;->f:Landroid/widget/RadioButton;

    invoke-virtual {v0, p0}, Landroid/widget/RadioButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 50
    :goto_0
    return-void

    .line 41
    :cond_0
    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 42
    const/16 v1, 0x11

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 44
    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 45
    const-string v2, "Please Unlock Feature With Plus Key"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 46
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 48
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Tasker;->setContentView(Landroid/view/View;)V

    goto :goto_0
.end method
